This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Custom Login/Register/Password Code @ http://digwp.com/2010/12/login-register-password-code/ --> | |
<!-- Theme Template Code --> | |
<div id="login-register-password"> | |
<?php global $user_ID, $user_identity; get_currentuserinfo(); if (!$user_ID) { ?> | |
<ul class="tabs_login"> | |
<li class="active_login"><a href="#tab1_login">Login</a></li> | |
<li><a href="#tab2_login">Register</a></li> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Custom Login/Register/Password Code @ http://digwp.com/2010/12/login-register-password-code/ --> | |
<!-- Theme Template Code --> | |
<div id="login-register-password"> | |
<?php global $user_ID, $user_identity; get_currentuserinfo(); if (!$user_ID) { ?> | |
<ul class="tabs_login"> | |
<li class="active_login"><a href="#tab1_login">Login</a></li> | |
<li><a href="#tab2_login">Register</a></li> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
** Template Name: Registo | |
** Este template foi criado pela miukimiu.com | |
** É um formulário de regsto costumizado para um site wordpress. | |
*/ | |
get_header(); ?> | |
<div class="block-9 no-mar content-with-sidebar"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery(document).ready(function($) { | |
/** | |
* When user clicks on button... | |
* | |
*/ | |
$('#btn-new-user').on("click",function() { | |
/** | |
* Prevent default action, so when user clicks button he doesn't navigate away from page |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function top_comment_authors($amount = 5){ | |
global $wpdb; | |
$results = $wpdb->get_results(' | |
SELECT | |
COUNT(comment_author_email) AS comments_count, comment_author_email, comment_author, comment_author_url | |
FROM | |
'.$wpdb->comments.' | |
WHERE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Template Name: Frontend Edit Profile | |
*/ | |
get_header(); | |
if ( is_user_logged_in() ) : { | |
$user_ID = get_current_user_id(); | |
$user_info = get_userdata($user_ID); |