Update theme with social icons
authorSteve Sutton <steve@gaslightmedia.com>
Fri, 23 Mar 2018 14:42:33 +0000 (10:42 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Fri, 23 Mar 2018 14:42:33 +0000 (10:42 -0400)
Updating with social icons.

functions.php
header.php
images/fb.png [new file with mode: 0644]
images/instagram.png [new file with mode: 0644]

index 04d239c..9c75a3f 100644 (file)
@@ -204,7 +204,8 @@ add_filter('admin_footer_text', 'custom_admin_footer');
 \r
 // remove admin update nag except for admin\r
 global $user_login;\r
-get_currentuserinfo();\r
+// get_currentuserinfo();\r
+wp_get_current_user();\r
 if (!current_user_can('update_plugins')) {\r
   add_action( 'init', create_function( '$a', "remove_action( 'init', 'wp_version_check' );" ), 2 );\r
   add_filter( 'pre_option_update_core', create_function( '$a', "return null;" ) );\r
@@ -291,7 +292,8 @@ add_action('admin_menu', 'as_remove_menus');
 // Hide ACF menu item from the admin menu\r
 function hide_admin_menu() {\r
   global $current_user;\r
-  get_currentuserinfo();\r
+  // get_currentuserinfo();\r
+  wp_get_current_user();\r
   if($current_user->user_login != 'mginop')  {\r
     echo '<style type="text/css">#toplevel_page_edit-post_type-acf,#toplevel_page_user-registration-aide{display:none;}</style>';\r
   }\r
index c02a61a..309d5ef 100644 (file)
@@ -8,6 +8,10 @@
 <body>\r
 <header class="container">\r
 <a href="<?php bloginfo('url'); ?>" title="<?php bloginfo('name'); ?>"><img src="<?php bloginfo('template_url'); ?>/images/logo.png" alt="<?php bloginfo('name'); ?>" width="120" height="137" id="logo"></a>\r
+<div style="width: 60%;float:left; display:block;">\r
+    <a style="float:right;margin:5px;" href="https://www.facebook.com/breakersmi" target="_blank"><img src="<?php bloginfo('template_url'); ?>/images/fb.png" width="60" height="56"></a>\r
+    <a style="float:right;margin:7px;" href="https://www.instagram.com/breakersresortsaintignace/" target="_blank"><img src="<?php bloginfo('template_url'); ?>/images/instagram.png" width="50" height="50"></a>\r
+</div>\r
 <address><strong>Breakers Resort</strong><br>927 North State Street<br>Saint Ignace, MI 49781<br><span>(906) 643-7733</span></address>\r
 </header>\r
 <div class="container">\r
diff --git a/images/fb.png b/images/fb.png
new file mode 100644 (file)
index 0000000..1a36e9f
Binary files /dev/null and b/images/fb.png differ
diff --git a/images/instagram.png b/images/instagram.png
new file mode 100644 (file)
index 0000000..3fbd5f9
Binary files /dev/null and b/images/instagram.png differ