Initial commit message
authorLaury GvR <laury@gaslightmedia.com>
Mon, 20 Oct 2014 18:20:20 +0000 (14:20 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Mon, 20 Oct 2014 18:20:20 +0000 (14:20 -0400)
20 files changed:
Gaslightify.php [new file with mode: 0755]
css/Gaslightify.css [new file with mode: 0755]
img/DashboardActivityLogo.png [new file with mode: 0644]
img/GLM_flame_box_inverted_16x16.png [new file with mode: 0755]
img/GLM_flame_box_inverted_16x16b.png [new file with mode: 0755]
img/GLM_flame_circle_48x48.gif [new file with mode: 0755]
img/GLM_flame_circle_trans_32x32.png [new file with mode: 0755]
img/GLM_flame_circle_trans_48x48.png [new file with mode: 0755]
img/GLM_flame_none_16x16.png [new file with mode: 0755]
img/GLM_flame_none_32x32.png [new file with mode: 0755]
img/GLM_flame_none_48x48.gif [new file with mode: 0755]
img/GLM_flame_none_trans_16x16.png [new file with mode: 0755]
img/GLM_flame_none_trans_32x32.png [new file with mode: 0755]
img/GLM_title_box_272x71.gif [new file with mode: 0755]
img/GLM_title_box_48x48.gif [new file with mode: 0755]
img/PetoskeyRoboticsLogo.png [new file with mode: 0755]
img/PetoskeyRoboticsLogoS.png [new file with mode: 0755]
img/flame_16x16.png [new file with mode: 0755]
img/icon-twitter3.gif [new file with mode: 0755]
js/Gaslightify.js [new file with mode: 0755]

diff --git a/Gaslightify.php b/Gaslightify.php
new file mode 100755 (executable)
index 0000000..8e4ae54
--- /dev/null
@@ -0,0 +1,116 @@
+<?php
+
+/*
+Plugin Name: Gaslightify
+Plugin URI: http://URI_Of_Page_Describing_Plugin_and_Updates
+Description: A gasline to a Wordpress website.
+Version: 1.26
+Author: Gaslight Media
+Author URI: http://www.gaslightmedia.com
+License: Gaslight Media
+*/
+
+//function basic_content_replace ($text){
+//$text = str_replace(‘Old’,’New’,$text)
+//return $text;
+//}
+//add_filter(‘the_content’,’basic_content_replace’);
+//add_filter(‘the_title’,’basic_content_replace’);
+
+function my_admin_theme_style() {
+//    wp_enqueue_style('my-admin-theme', plugins_url('css/Gaslightify.css', __FILE__));
+}
+add_action('admin_enqueue_scripts', 'my_admin_theme_style');
+add_action('login_enqueue_scripts', 'my_admin_theme_style');
+
+function my_admin_footer() {
+        echo '<p>This Theme was made by <a href="http://www.gaslightmedia.com">Gaslight Media</a>.</p>';
+}
+
+add_action('admin_footer_text', 'my_admin_footer');
+
+function left_admin_footer_text_output($text) {
+//    $text = '<p>This Theme was made by <a href="http://www.gaslightmedia.com">Gaslight Media</a>.</p>';
+    return $text;
+}
+add_filter('update_footer', 'right_admin_footer_text_output', 11, true); //right side
+function right_admin_footer_text_output($text) {
+    $text = '';
+    return $text;
+}
+
+add_action('admin_enqueue_scripts', 'interface_client_safeguard');
+
+function interface_client_safeguard() {
+    if ( current_user_can( 'manage_options' ) ) {
+        /* A user with admin privileges */
+        
+    } else {
+        /* A user without admin privileges */
+       wp_enqueue_style('GaslightifyStyle');
+       wp_enqueue_script('GaslightifyJs', plugins_url('js/Gaslightify.js', __FILE__),array(),'1.0.0', true);
+        wp_enqueue_style('GaslightifyStyle', plugins_url('css/Gaslightify.css', __FILE__));
+        
+    }
+}
+
+
+
+add_filter('login_errors','login_error_message');
+
+function login_error_message($error){
+    //check if that's the error you are looking for
+    $pos = strpos($error, 'incorrect');
+    if (is_int($pos)) {
+        //its the right error so you can overwrite it
+        $error = "Invalid Credentials. Please ensure the username and password you entered are correct.";
+    }
+    return $error;
+}
+
+
+add_action('admin_bar_menu', 'glm_custom_logo');
+
+function glm_custom_logo() {
+    ?>
+    <style type="text/css"> 
+        
+        #adminmenu .wp-menu-image img {
+            content: url(<?php echo plugins_url(); ?>/Gaslightify/img/GLM_flame_box_inverted_16x16b.png) !important; 
+        }
+        #dashboard_activity .no-activity .smiley:before { 
+            content: url(<?php echo bloginfo('template_url', __FILE__); ?>/assets/DashboardActivityLogo.png);
+        }
+        #wp-admin-bar-wp-logo > .ab-item .ab-icon:before, #header-logo {
+            content: url(<?php echo plugins_url(); ?>/Gaslightify/img/GLM_flame_none_trans_32x32.png) !important;
+        }
+    </style>
+    <?php
+    
+}
+
+add_action('login_form','my_login_logo');
+
+function my_login_logo() { ?>
+    <style type="text/css">
+        
+        #login > h1 > a {
+            background-image: url(<?php echo plugins_url(); ?>/Gaslightify/img/GLM_title_box_272x71.gif);
+            width: auto;
+            background-size: auto;
+        }
+    </style>
+    
+<?php }
+
+function replace_howdy( $wp_admin_bar ) {
+    $my_account=$wp_admin_bar->get_node('my-account');
+    $newtitle = str_replace( 'Howdy,', 'Welcome back,', $my_account->title . "!" );
+    $wp_admin_bar->add_node( array(
+    'id' => 'my-account',
+    'title' => $newtitle,
+    ) );
+    }
+    add_filter( 'admin_bar_menu', 'replace_howdy',25 );
+?>
diff --git a/css/Gaslightify.css b/css/Gaslightify.css
new file mode 100755 (executable)
index 0000000..03d5b25
--- /dev/null
@@ -0,0 +1,25 @@
+#screen-meta-links,
+select[name="seo_filter"],
+#menu-posts,
+#menu-comments,
+#menu-tools,
+#menu-users,
+#wp-admin-bar-edit-profile,
+#wp-admin-bar-user-info,
+#wp-admin-bar-wp-logo-default,
+#wp-admin-bar-wp-logo-external,
+#wp-admin-bar-comments,
+#wp-admin-bar-new-post,
+#wp-admin-bar-wpseo-menu,
+#footer-thankyou,
+#footer-upgrade,
+#dashboard_primary,
+#dashboard_quick_press,
+#dashboard_activity,
+#wp-version-message {
+    display: none !important;
+}
+// To delete the dashboard menu option
+/*#menu-dashboard {
+    display: none;
+}*/
\ No newline at end of file
diff --git a/img/DashboardActivityLogo.png b/img/DashboardActivityLogo.png
new file mode 100644 (file)
index 0000000..ba0957e
Binary files /dev/null and b/img/DashboardActivityLogo.png differ
diff --git a/img/GLM_flame_box_inverted_16x16.png b/img/GLM_flame_box_inverted_16x16.png
new file mode 100755 (executable)
index 0000000..53b4d03
Binary files /dev/null and b/img/GLM_flame_box_inverted_16x16.png differ
diff --git a/img/GLM_flame_box_inverted_16x16b.png b/img/GLM_flame_box_inverted_16x16b.png
new file mode 100755 (executable)
index 0000000..89b57f5
Binary files /dev/null and b/img/GLM_flame_box_inverted_16x16b.png differ
diff --git a/img/GLM_flame_circle_48x48.gif b/img/GLM_flame_circle_48x48.gif
new file mode 100755 (executable)
index 0000000..499dd28
Binary files /dev/null and b/img/GLM_flame_circle_48x48.gif differ
diff --git a/img/GLM_flame_circle_trans_32x32.png b/img/GLM_flame_circle_trans_32x32.png
new file mode 100755 (executable)
index 0000000..1273f98
Binary files /dev/null and b/img/GLM_flame_circle_trans_32x32.png differ
diff --git a/img/GLM_flame_circle_trans_48x48.png b/img/GLM_flame_circle_trans_48x48.png
new file mode 100755 (executable)
index 0000000..2f3a184
Binary files /dev/null and b/img/GLM_flame_circle_trans_48x48.png differ
diff --git a/img/GLM_flame_none_16x16.png b/img/GLM_flame_none_16x16.png
new file mode 100755 (executable)
index 0000000..0bc0261
Binary files /dev/null and b/img/GLM_flame_none_16x16.png differ
diff --git a/img/GLM_flame_none_32x32.png b/img/GLM_flame_none_32x32.png
new file mode 100755 (executable)
index 0000000..5425e9c
Binary files /dev/null and b/img/GLM_flame_none_32x32.png differ
diff --git a/img/GLM_flame_none_48x48.gif b/img/GLM_flame_none_48x48.gif
new file mode 100755 (executable)
index 0000000..015d20b
Binary files /dev/null and b/img/GLM_flame_none_48x48.gif differ
diff --git a/img/GLM_flame_none_trans_16x16.png b/img/GLM_flame_none_trans_16x16.png
new file mode 100755 (executable)
index 0000000..df59845
Binary files /dev/null and b/img/GLM_flame_none_trans_16x16.png differ
diff --git a/img/GLM_flame_none_trans_32x32.png b/img/GLM_flame_none_trans_32x32.png
new file mode 100755 (executable)
index 0000000..e3a2240
Binary files /dev/null and b/img/GLM_flame_none_trans_32x32.png differ
diff --git a/img/GLM_title_box_272x71.gif b/img/GLM_title_box_272x71.gif
new file mode 100755 (executable)
index 0000000..9961cb2
Binary files /dev/null and b/img/GLM_title_box_272x71.gif differ
diff --git a/img/GLM_title_box_48x48.gif b/img/GLM_title_box_48x48.gif
new file mode 100755 (executable)
index 0000000..17c654c
Binary files /dev/null and b/img/GLM_title_box_48x48.gif differ
diff --git a/img/PetoskeyRoboticsLogo.png b/img/PetoskeyRoboticsLogo.png
new file mode 100755 (executable)
index 0000000..f975038
Binary files /dev/null and b/img/PetoskeyRoboticsLogo.png differ
diff --git a/img/PetoskeyRoboticsLogoS.png b/img/PetoskeyRoboticsLogoS.png
new file mode 100755 (executable)
index 0000000..ba0957e
Binary files /dev/null and b/img/PetoskeyRoboticsLogoS.png differ
diff --git a/img/flame_16x16.png b/img/flame_16x16.png
new file mode 100755 (executable)
index 0000000..53b4d03
Binary files /dev/null and b/img/flame_16x16.png differ
diff --git a/img/icon-twitter3.gif b/img/icon-twitter3.gif
new file mode 100755 (executable)
index 0000000..499dd28
Binary files /dev/null and b/img/icon-twitter3.gif differ
diff --git a/js/Gaslightify.js b/js/Gaslightify.js
new file mode 100755 (executable)
index 0000000..3542b14
--- /dev/null
@@ -0,0 +1,17 @@
+jQuery(document).ready(function(){
+       jQuery("#wp-admin-bar-my-account > a").click(function(){
+               return false;
+       });
+        jQuery("#wp-admin-bar-wp-logo > .ab-item").click(function() {
+            return false;
+        });
+        jQuery("#wp-admin-bar-wp-logo").hover(function() {
+            return false;
+        });
+        var jurl = jQuery(".ngg-gallery-thumbnail").attr("title");
+        jQuery(".ngg-gallery-thumbnail").attr("href","http://gaslight.upnorth.net/our-work/"+jurl);
+        
+        jQuery('#wp-admin-bar-my-account > a').attr("href","#");
+        jQuery('#wp-admin-bar-user-info > a').attr("href","#");
+        
+});