Browse Source

simplify notification

windhamdavid 9 months ago
parent
commit
4d79e4f875
2 changed files with 21 additions and 3 deletions
  1. 20 2
      functions.php
  2. 1 1
      style.css

+ 20 - 2
functions.php

@@ -38,7 +38,22 @@ function srh_notice_select_field_0_render() {
 <?php }
 function srh_notice_message_render() {
 	$srh_notice_message = get_option( 'srh_notice_message' );
-	echo wp_editor( $srh_notice_message, 'srh_notice_message', array('textarea_name' => 'srh_notice_message')  );
+	$settings = array( 
+		'quicktags' => array( 'buttons' => 'strong,em,del,ul,ol,li,close' ),
+	);
+	echo wp_editor( 
+		$srh_notice_message, 
+		'srh_notice_message', 
+		array(
+			'textarea_name' => 'srh_notice_message',
+			'media_buttons' => false,
+			'teeny' => true,
+			'quicktags' => array( 'buttons' => 'strong,em,del,ul,ol,li' ),
+			'tinymce' => array( 
+				'content_css' => get_template_directory_uri() . '/css/layout.css',
+	        ) 
+		)  
+	);
 }
 function srh_notice_options_page() { ?>
 	<div class="wrap">
@@ -53,11 +68,14 @@ function srh_notice_options_page() { ?>
 	</div>
 <?php }
 function srh_notice_display_message() {
+	echo '<div class="container" style="padding-top: 20px;"><div class="post-entry post-entry-type-page"><div class="entry-content-wrapper clearfix">';
+	echo '<article class="iconbox iconbox_top main_color avia-builder-el-0 avia-builder-el-no-sibling "><div class="iconbox_content">';
 	echo get_option('srh_notice_message');
+	echo '</div></article>';
+	echo '</div></div></div>';
 }
 $srh_status = get_option('srh_notice_settings');
 if( $srh_status['srh_notice_select_field_0'] == '1' ) { 
 	add_action('ava_after_main_container', 'srh_notice_display_message');
 }
 /******************* END NOTIFICATIONS *********************/
-

+ 1 - 1
style.css

@@ -1,5 +1,5 @@
 /*
- Theme Name:   Self Regional Theme
+ Theme Name:   Self Regional
  Author:       David Windham
  Author URI:   https://davidawindham.com
  Template:     enfold