//add_filter(‘the_content’,’basic_content_replace’);
//add_filter(‘the_title’,’basic_content_replace’);
+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_script('GaslightifyJs', plugins_url('js/Gaslightify.js', __FILE__),array(),'1.0.0', true);
+ wp_enqueue_style('GaslightifyStyle', plugins_url('css/Gaslightify.css', __FILE__));
+ if ( is_multisite() ) {
+ wp_enqueue_style('GaslightifyMSStyle', plugins_url('css/GaslightifyMS.css', __FILE__));
+ }
+ }
+}
+
function my_admin_theme_style() {
// wp_enqueue_style('my-admin-theme', plugins_url('css/Gaslightify.css', __FILE__));
}
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>';
+ echo '<p>This Theme was created by <a href="http://www.gaslightmedia.com">Gaslight Media</a>.</p>';
}
add_action('admin_footer_text', 'my_admin_footer');
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_script('GaslightifyJs', plugins_url('js/Gaslightify.js', __FILE__),array(),'1.0.0', true);
- wp_enqueue_style('GaslightifyStyle', plugins_url('css/Gaslightify.css', __FILE__));
- if ( is_multisite() ) {
- wp_enqueue_style('GaslightifyMSStyle', plugins_url('css/GaslightifyMS.css', __FILE__));
- }
- }
-}
-
-
-
add_filter('login_errors','login_error_message');
function login_error_message($error){
return $error;
}
-
add_action('admin_bar_menu', 'glm_custom_logo');
function glm_custom_logo() {
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("#ngg_page_content .wrap h2").text("GLM Photo Gallery");
+ jQuery("#ngg_page_content #dashboard_right_now .hndle span").text("Welcome to the gallery!");
+ jQuery('#toplevel_page_nextgen-gallery ul li:contains("Gallery Settings")').css('display', 'none');
+ jQuery('#toplevel_page_nextgen-gallery ul li:contains("Other Options")').css('display', 'none');
+ jQuery('#toplevel_page_nextgen-gallery ul li:contains("Upgrade to Pro")').css('display', 'none');
jQuery("#wp-admin-bar-wp-logo > .ab-item").attr("href","#").attr("title","");
jQuery('#wp-admin-bar-my-account > a').attr("href","#").attr("title","");