3 Commits 921e832588 ... ed44a5f39a

Author SHA1 Message Date
  windhamdavid ed44a5f39a footer 5 months ago
  windhamdavid a5020f8cc5 editor styles 5 months ago
  windhamdavid 7ad3db4eed editor styles 5 months ago
4 changed files with 57 additions and 6 deletions
  1. 8 1
      functions.php
  2. 37 5
      patterns/footer.php
  3. 7 0
      style-editor.css
  4. 5 0
      theme.json

+ 8 - 1
functions.php

@@ -5,6 +5,13 @@ function lnr24_enqueue_assets() {
 }
 add_action( 'wp_enqueue_scripts', 'lnr24_enqueue_assets' );
 
+function lnr24_theme_setup() {
+  add_theme_support( 'editor-styles' );
+  add_editor_style( 'style-editor.css' );
+}
+add_action( 'after_setup_theme', 'lnr24_theme_setup' );
+
+
 /***********************************************************
 ###################### BrowserSync #########################
 ************************************************************/
@@ -78,7 +85,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 != '1') {
+  if($user_id != '0') {
   	remove_menu_page('plugins.php');
     remove_menu_page('tools.php');
     remove_menu_page('options-general.php');

+ 37 - 5
patterns/footer.php

@@ -11,8 +11,8 @@
 <!-- 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)">
+	<!-- wp:group {"align":"wide","style":{"spacing":{"padding":{"top":"var:preset|spacing|70","bottom":"var:preset|spacing|80"}}}} -->
+	<div class="wp-block-group alignwide container" style="padding-top:var(--wp--preset--spacing--70);padding-bottom:var(--wp--preset--spacing--80)">
 		
 		<!-- wp:columns {"style":{"spacing":{"padding":{"top":"var:preset|spacing|10"}}}} -->
 		<div class="wp-block-columns" style="padding-top:var(--wp--preset--spacing--10)">
@@ -22,8 +22,8 @@
 				<!-- wp:heading {"level":4} -->
 				<h4	class="wp-block-heading">Our Location</h4>
 				<!-- /wp:heading -->
-				<!-- wp:paragraph {"style":{"typography":{"lineHeight":"0","font-size":"1.2rem"}}} -->
-				<p style="font-size:1.2rem;line-height:0">Lakelands Plastic Surgery</p>
+				<!-- wp:paragraph {"style":{"typography":{"lineHeight":"1","font-size":"1.2rem"}}} -->
+				<p style="font-size:1.2rem;line-height:1">Lakelands Nursing and Rehabilitation Center</p>
 				<!-- /wp:paragraph -->
 				<!-- wp:paragraph {"style":{"typography":{"lineHeight":"0","font-size":"1.2rem"}}} -->
 				<p style="font-size:1.2rem;line-height:0">83 Thomson Circle</p>
@@ -51,6 +51,12 @@
 
 			<!-- wp:column {"width":"33%"} -->
 			<div class="wp-block-column" style="flex-basis:33%">
+				<!-- wp:heading {"level":4} -->
+				<h4	class="wp-block-heading">About</h4>
+				<!-- /wp:heading -->
+				<!-- wp:paragraph {"style":{"typography":{"lineHeight":"1","font-size":"1rem"}}} -->
+				 <p style="font-size:1rem;line-height:1">Lakelands Nursing and Rehabilitation Center is a 176-bed skilled nursing facility located in Abbeville, SC. We are a part of Self Regional Healthcare, a not-for-profit, regional referral hospital that provides care to residents of Greenwood, Abbeville, Laurens, Saluda, McCormick, Edgefield and Newberry counties.</p>
+				 <!-- /wp:paragraph -->
 				<!-- wp:image {"sizeSlug":"full","linkDestination":"none"} -->
 				<figure class="wp-block-image"><img src="<?php echo get_template_directory_uri(); ?>/img/SRH_Logo.png" alt="Self Regional Healthcare"/></figure>
 				<!-- /wp:image -->
@@ -58,7 +64,7 @@
 				<div class="wp-block-buttons" style="margin-top:0;margin-bottom:0">
 				<!-- wp:button {"textAlign":"center","backgroundColor":"contrast","textColor":"base","style":{"elements":{"link":{"color":{"text":"var:preset|color|base"}}},"spacing":{"padding":{"left":"var:preset|spacing|40","right":"var:preset|spacing|40"}}}} -->
 				<div class="wp-block-button">
-					<a class="wp-block-button__link has-base-color has-contrast-background-color has-text-color has-background has-link-color has-text-align-center wp-element-button" href="https://selfregional.org" style="padding-right:var(--wp--preset--spacing--40);padding-left:var(--wp--preset--spacing--40)">www.selfregional.org</a>
+					<a target="_blank" class="wp-block-button__link has-base-color has-contrast-background-color has-text-color has-background has-link-color has-text-align-center wp-element-button" href="https://selfregional.org" style="padding-right:var(--wp--preset--spacing--40);padding-left:var(--wp--preset--spacing--40)">Visit SelfRegional.org</a>
 				</div>
 				<!-- /wp:button -->
 				</div>
@@ -71,5 +77,31 @@
 
 	</div>
 	<!-- /wp:group -->
+
 </div>
 <!-- /wp:group -->
+
+<!-- wp:group {"align":"full","textColor":"base","backgroundColor":"secondary","layout":{"type":"constrained"}} -->
+<div class="wp-block-group alignfull has-text-color-base has-contrast-light-color has-secondary-background-color has-text-color has-background">
+
+<!-- wp:group {"align":"wide","style":{"spacing":{"padding":{"top":"var:preset|spacing|70","bottom":"var:preset|spacing|70"}}}} -->
+<div class="wp-block-group alignwide container" style="padding-top:var(--wp--preset--spacing--70);padding-bottom:var(--wp--preset--spacing--70)">
+
+	<!-- wp:group {"style":{"spacing":{"blockGap":"6px"}},"layout":{"type":"flex","flexWrap":"wrap"}} -->
+	<div class="wp-block-group">
+		<!-- wp:paragraph {"style":{"elements":{"link":{"color":{"text":"var:preset|color|muted"}}}},"textColor":"muted","fontSize":"small"} -->
+		<p class="has-muted-color has-text-color has-link-color has-small-font-size"><?php esc_html_e('&copy;&nbsp;', 'uhp'); echo date("Y");?></p>
+		<!-- /wp:paragraph -->
+		<!-- wp:site-title {"level":0,"isLink":false,"style":{"typography":{"fontStyle":"normal","fontWeight":"400"},"elements":{"link":{"color":{"text":"var:preset|color|muted"}}}},"textColor":"muted","fontSize":"small"} /-->
+	</div>
+	<!-- /wp:group -->
+
+	<!-- wp:paragraph {"align":"right","className":"has-small-font-size has-muted-color has-text-color"} -->
+	<p class="has-text-align-right has-small-font-size has-muted-color has-text-color">Last Updated: <?php echo get_the_modified_time('F jS, Y');?></p>
+	<!-- /wp:paragraph -->
+
+</div>
+<!-- /wp:group -->
+
+</div>
+<!-- /wp:group -->

+ 7 - 0
style-editor.css

@@ -0,0 +1,7 @@
+/* 
+noticed that full width blocks still have a default block start margin
+https://github.com/WordPress/gutenberg/issues/37811
+*/
+:where(.wp-site-blocks) > * {
+  margin-block-start: 0 !important;
+}

+ 5 - 0
theme.json

@@ -35,6 +35,11 @@
 					"color": "#F0F0F0",
 					"name": "Contrast Light"
 				},
+				{
+					"slug": "muted",
+					"color": "#858792",
+					"name": "Muted"
+				},
 				{
 					"slug": "primary",
 					"color": "#19458c",