adding shortcode for login form
authorAnthony Talarico <talarico@gaslightmedia.com>
Fri, 30 Mar 2018 12:31:20 +0000 (08:31 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Fri, 30 Mar 2018 12:31:20 +0000 (08:31 -0400)
assets/logo-compact.png [new file with mode: 0755]
assets/logo-large.png [new file with mode: 0755]
assets/logo-small.png [new file with mode: 0755]
functions.php
inc/glm-dev.php [new file with mode: 0644]

diff --git a/assets/logo-compact.png b/assets/logo-compact.png
new file mode 100755 (executable)
index 0000000..66b1b3a
Binary files /dev/null and b/assets/logo-compact.png differ
diff --git a/assets/logo-large.png b/assets/logo-large.png
new file mode 100755 (executable)
index 0000000..b8b2362
Binary files /dev/null and b/assets/logo-large.png differ
diff --git a/assets/logo-small.png b/assets/logo-small.png
new file mode 100755 (executable)
index 0000000..748f21a
Binary files /dev/null and b/assets/logo-small.png differ
index 35d3dab..20b54bb 100644 (file)
@@ -194,6 +194,10 @@ function accesspress_parallax_scripts() {
        }
 }
 add_action( 'wp_enqueue_scripts', 'accesspress_parallax_scripts' );
+/**
+ * Implement Misc Functions
+ */
+require get_template_directory() . '/inc/glm-dev.php';
 
 /**
  * Implement the Custom Header feature.
diff --git a/inc/glm-dev.php b/inc/glm-dev.php
new file mode 100644 (file)
index 0000000..02a144f
--- /dev/null
@@ -0,0 +1,21 @@
+
+<?php
+function glm_login_form( $atts ){
+    ob_start(); ?>
+    <div id='glm-member-login-form'>
+        <?php
+            $args = array(
+                'echo'    => false,
+                'form_id' => 'glm_login_form',
+                'redirect'       => "http://localhost/wp/hospitalitymentality/",
+            );
+            $loginForm = wp_login_form($args);
+            $captcha   = apply_filters('cptch_display', '', 'glm_login_form');
+            $form      = str_replace( '<p class="login-remember">', $captcha . '<p class="login-remember">', $loginForm );
+            echo $form;
+        ?>
+    </div>
+    <?php return ob_get_clean();
+
+ }
+add_shortcode( 'glm-login-form', 'glm_login_form' );
\ No newline at end of file