mohammad barghamadi
Forum Replies Created
-
Forum: Developing with WordPress
In reply to: function to show date passed after posts publishHi Joy
I just try to create my own function
thank you for your replaythanks George, here is my code:
<div id="login-modal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="login-modal" aria-hidden="true"> <div class="modal-dialog"> <div class="login-section modal-section"> <?php get_template_part( 'partials/members/login' ); ?> </div> <!-- .login-section --> <div class="password-section modal-section"> <?php get_template_part( 'partials/members/reset-password' ); ?> </div> <!-- .password-reset-section --> <?php if( get_option( 'users_can_register' ) ) : ?> <div class="register-section modal-section"> <?php get_template_part( 'partials/members/register' ); ?> </div> <!-- .register-section --> <?php endif; ?> </div> <!-- .modal-dialog --> </div><!-- .modal --> <script> (function ($) { "use strict"; /** * Modal dialog for Login and Register */ var loginModal = $('#login-modal'), modalSections = loginModal.find('.modal-section'); $('.activate-section').on('click', function (event) { var targetSection = $(this).data('section'); modalSections.slideUp(); loginModal.find('.' + targetSection).slideDown(); event.preventDefault(); }); })(jQuery); </script>
and here is login page codes:
<div class="form-wrapper"> <div class="form-heading clearfix"> <span><i class="fa fa-sign-in"></i><?php _e( 'Login', 'inspiry' ); ?></span> <button type="button" class="close close-modal-dialog " data-dismiss="modal" aria-hidden="true"><i class="fa fa-times fa-lg"></i></button> </div> <form id="login-form" action="<?php echo admin_url('admin-ajax.php'); ?>" method="post" enctype="multipart/form-data"> <div class="form-element"> <label class="login-form-label" for="login-username"><?php _e( 'Email or Mobile', 'inspiry' ); ?></label> <input id="login-username" name="log" type="text" class="login-form-input login-form-input-common required" title="<?php _e( 'Please Provide your email address or mobile number', 'inspiry' ); ?>" placeholder="<?php _e( 'Email or Mobile', 'inspiry' ); ?>" /> </div> <div class="form-element"> <label class="login-form-label" for="password"><?php _e( 'Password', '<div class="form-wrapper"> <div class="form-heading clearfix"> <span><i class="fa fa-sign-in"></i><?php _e( 'Login', 'mytheme' ); ?></span> <button type="button" class="close close-modal-dialog " data-dismiss="modal" aria-hidden="true"><i class="fa fa-times fa-lg"></i></button> </div> <form id="login-form" action="<?php echo admin_url('admin-ajax.php'); ?>" method="post" enctype="multipart/form-data"> <div class="form-element"> <label class="login-form-label" for="login-username"><?php _e( 'Email or Mobile', 'mytheme' ); ?></label> <input id="login-username" name="log" type="text" class="login-form-input login-form-input-common required" title="<?php _e( 'Please Provide your email address or mobile number', 'mytheme' ); ?>" placeholder="<?php _e( 'Email or Mobile', 'mytheme' ); ?>" /> </div> <div class="form-element"> <label class="login-form-label" for="password"><?php _e( 'Password', 'mytheme' ); ?></label> <input id="password" name="pwd" type="password" class="login-form-input login-form-input-common required" title="<?php _e( '* Provide your password', 'mytheme' ); ?>" placeholder="<?php _e( 'Password', 'mytheme' ); ?>" /> </div> <?php get_template_part( 'partials/common/google-reCAPTCHA' ); ?> <div class="form-element clearfix"> <input type="submit" id="login-button" class="login-form-submit login-form-input-common" value="<?php _e( 'Login', 'mytheme' ); ?>" /> <input type="hidden" name="action" value="mytheme_ajax_login" /> <input type="hidden" name="user-cookie" value="1" /> <?php // nonce for security wp_nonce_field( 'mytheme-ajax-login-nonce', 'mytheme-secure-login' ); if ( is_page() || is_single() ) { ?><input type="hidden" name="redirect_to" value="<?php wp_reset_postdata(); global $post; the_permalink( $post->ID ); ?>" /><?php } else { ?><input type="hidden" name="redirect_to" value="<?php echo esc_url( home_url( '/' ) ); ?>" /><?php } ?> <div class="text-center"> <div id="login-message" class="modal-message"></div> <div id="login-error" class="modal-error"></div> <img id="login-loader" class="modal-loader" src="<?php echo get_template_directory_uri(); ?>/images/ajax-loader.gif" alt="Working..."> </div> </div> </form> <div class="mytheme-social-login"> <?php /* * For social login */ do_action( 'wordpress_social_login' ); ?> </div> <div class="clearfix"> <?php if( get_option( 'users_can_register' ) ) : ?> <span class="sign-up pull-left"> <?php _e( 'Not a Member?', 'mytheme' ); ?> <a href="#" class="activate-section" data-section="register-section"><?php _e( 'Sign up now', 'mytheme' ); ?></a> </span> <?php endif; ?> <span class="forgot-password pull-right"> <a href="#" class="activate-section" data-section="password-section"><?php _e( 'Forgot Password?', 'mytheme' ); ?></a> </span> </div> </div> <?php /* ?> <div class="buttons-external"> <div class="graphic"> <span class="or"><?php _e( 'or', 'mytheme' ); ?></span> <span class="vertical-line"></span> <span class="circle"></span> </div> <div class="clearfix"> <a class="button facebook-button" href="#"> <i class="fa fa-facebook"></i> <?php _e( 'Login with Facebook', 'mytheme' ); ?> </a> <a class="button google-button" href="#"> <i class="fa fa-google"></i> <?php _e( 'Login with Google', 'mytheme' ); ?> </a> </div> </div> <?php */ ?>
Forum: Plugins
In reply to: [WordPress Social Login] Google Authentication failedThanks a lot
My Problem Solved!
You Are GreatForum: Plugins
In reply to: [WordPress Social Login] Google Authentication failedhi
i have same problem tooForum: Plugins
In reply to: Paid Plugin Problemsi solved it by my self ??
only going in line 176 of the functions.php and change above code with this:if (is_array($jahanpay_info_cache) && array_key_exists($orderid, $jahanpay_info_cache)) {
Thanks a lot to everyone
Forum: Plugins
In reply to: [DW Question & Answer] freezed Browser after use logo in notificationThanks So much ??
Forum: Reviews
In reply to: [Schema - All In One Schema Rich Snippets] Need UodateThanks Man
GG WP ??Forum: Plugins
In reply to: [DW Question & Answer] Duplicate best answershi
i have the same problem
please fix this bugForum: Fixing WordPress
In reply to: Automatically Cache without Cache PluginThanks
solvedForum: Plugins
In reply to: [Telegram Bot & Channel] GroupsHi
Thanks for your Free Support
no
in the earlir version of your bot if someone in group speak to the bot , the bot automatically answer him in his/her PV and Automatically Subscribed to bot user list without Clicking on Start key.
but now i not need this feature. thank you & sorry for my Bad ENForum: Plugins
In reply to: [Telegram Bot & Channel] Groupshi Marco
group feature is so much good | thanks for that
before your last update when everyone speak to my bot my bot automatically subscribed in his or her account and answer him, is there a way i manually back this feature to my bot ?
thanks you.Forum: Plugins
In reply to: [Telegram Bot & Channel] Plugin LimitationYour Welcome Bro ??
Forum: Plugins
In reply to: [Telegram Bot & Channel] Plugin Limitationhi Marco
Thanks for your Great Support.
Thank you!Forum: Plugins
In reply to: [Telegram Bot & Channel] Plugin Limitationhi aghorbanmehr
there is no need for any special configuration
i only Install the plugin and use the token in plugin settings(wp-admin\telegram\settings)
and set the connection mode on Wp-tele.ga platform
you can see here: ImageForum: Plugins
In reply to: [Telegram Bot & Channel] Keyboard RepliesHi
Thanks Marco.Support for custom keyboard (default + command replies) its great