function wepromotethis_search_form($form)
{
    global $hop;
    $plink = "http://www.wepromotethis.com/hop/" . $hop;
    $eplink = urlencode($plink);
    $socialLink = '';
    if (function_exists('display_social4i')) {
        $socialLink = display_social4i("large", "align-right");
        // Modify $socialLink so that the twitter, facebook, and google plus buttons display properly
        $socialLink = preg_replace('/data-url="([^"]+)"/i', 'data-url="' . $plink . '" ', $socialLink);
        $socialLink = preg_replace('/data-counturl="([^"]+)"/i', 'data-counturl="wepromotethis.com" ', $socialLink);
        $socialLink = preg_replace('/data-text="([^"]+)"/i', 'data-text="I just turned my computer into an ATM. Thanks #WPT !!! " ', $socialLink);
        $socialLink = preg_replace('/(<g:plusone.* href=)"([^"]+)"/i', '$1"https://plus.google.com/106500919528675853199"', $socialLink);
        $socialLink = preg_replace('/(<fb:like.* href=|fb-like.* data-href=)"([^"]+)"/i', '$1"https://www.facebook.com/pages/WePromoteThiscom/367519556648222?ref=hl"', $socialLink);
    }
    if (function_exists('theme_my_login')) {
        //global $theme_my_login;
        //$themeMyLoginForm = $theme_my_login -> shortcode(wp_parse_args('[widget_theme_my_login]'));
        //$themeMyLoginForm = $theme_my_login -> shortcode(wp_parse_args('[theme_my_login]'));
        ob_start();
        theme_my_login(wp_parse_args('[widget_theme_my_login]'));
        //theme_my_login(wp_parse_args('[theme_my_login]'));
        $themeMyLoginForm = ob_get_contents();
        ob_end_clean();
    }
    //$themeMyLoginForm = wp_login_form( array('echo' => false) );
    $form .= "<div class='register_button wpt_loggedout'>\r\n    <div>\r\n    " . $themeMyLoginForm . "\r\n    </div>\r\n    </div>\r\n\r\n    <div class='logout_button wpt_loggedin'>\r\n    <a href='" . wp_logout_url(home_url()) . "' title='Logout'>Logout</a>\r\n    </div>\r\n    \r\n    <div class='sociallink_page_header'>\r\n    " . $socialLink . "\r\n    </div>\r\n    ";
    return $form;
}
</header>
<section class="entry-content">
<?php 
        if (has_post_thumbnail()) {
            the_post_thumbnail();
        }
        the_content();
        ?>
<div class="entry-links"><?php 
        wp_link_pages();
        ?>
</div>

</section>
</article>
<?php 
        if (!post_password_required()) {
            comments_template('', true);
        }
    }
}
?>

</section>
    tag php para login
<?php 
theme_my_login(login);
?>
</div> <!--.pai-de-todos-->
<?php 
get_footer();
function pickle_sidebar()
{
    ?>
<div id="side_bar">
        <div id="sociable">
            <?php 
    if (function_exists('sociable_html')) {
        echo sociable_html();
    }
    ?>
 
        </div>
        <div id="tag_cloud">
            <h2>Tags</h2> 
            <?php 
    wp_tag_cloud($args);
    $args = array('smallest' => 8, 'largest' => 22, 'unit' => 'pt', 'number' => 45, 'format' => 'flat', 'separator' => '\\n', 'orderby' => 'name', 'order' => 'ASC', 'link' => 'view', 'taxonomy' => 'post_tag', 'echo' => true);
    ?>
         
        </div>
        <div id="join">
        <?php 
    theme_my_login();
    ?>
    
        </div>
    </div>
<?php 
}