Exemplo n.º 1
0
        <?php wp_head(); ?>

        <script src="<?php bloginfo('template_url') ?>/js/jquery.js" type="text/javascript"></script>
        <script src="<?php bloginfo('template_url') ?>/js/jquery.raty.min.js" type="text/javascript" ></script>

    </head>
    <body>
        <div id="head_container">
            <a href="<?php echo get_option('home'); ?>">
                <div id="logo">
                    <!-- LOGO -->
                </div>
            </a>
            <div id="search">
                <?php if(function_exists('wp_custom_fields_search'))
                    wp_custom_fields_search(); ?>
            </div>
            <fieldset id="login">

                <form name="loginform" id="loginform" action="<?php echo get_option('home'); ?>/wp-login.php" method="post">

                    <label>usuário<br />
                        <input type="text" name="log" id="user_login" class="input" value="" size="20" tabindex="10" /></label>

                    <label>senha<br />
                        <input type="password" name="pwd" id="user_pass" class="input" value="" size="20" tabindex="20" /></label>
                    <br>
                    <p class="submit">
                        <input type="submit" name="wp-submit" id="wp-submit" class="button-primary" value="login" tabindex="100" />
                        <input type="hidden" name="redirect_to" value="<?php echo get_option('home'); ?>/wp-admin/" />
                        <input type="hidden" name="testcookie" value="1" />
Exemplo n.º 2
0
function widget_bsearch_assign($args)
{
    extract($args);
    ?>
        <?php 
    echo $before_widget;
    ?>
        
          <?php 
    echo $before_title . 'Search Business Directory' . $after_title;
    ?>
         
		
		<?php 
    if (function_exists('wp_custom_fields_search')) {
        wp_custom_fields_search('preset-1');
    }
    ?>
 
		
        <?php 
    echo $after_widget;
}
 function generate_from_tag($reMatches)
 {
     global $CustomSearchFieldStatic;
     ob_start();
     $preset = $reMatches[1];
     if (!$preset) {
         $preset = 'default';
     }
     wp_custom_fields_search($preset);
     $form = ob_get_contents();
     ob_end_clean();
     return $form;
 }
Exemplo n.º 4
0
function widget_search_assign($args)
{
    extract($args);
    ?>
        <?php 
    echo $before_widget;
    ?>
        
          <?php 
    echo $before_title . 'Search For Deals' . $after_title;
    ?>
         
		
		<?php 
    if (function_exists('wp_custom_fields_search')) {
        wp_custom_fields_search();
    }
    ?>
 
		
        <?php 
    echo $after_widget;
}