Exemplo n.º 1
0
/**
 * Template function that encrypt the get_post_meta result
 * call it with the default get_post_meta parameters
 **/
function get_encryptx_meta($post_id, $key, $single = false)
{
    $values = get_post_meta($post_id, $key, $single);
    if (is_array($values)) {
        $return = array();
        foreach ($values as $value) {
            $return[] = encryptx($value, array('echo' => 0));
        }
    } else {
        $return = encryptx($values, array('echo' => 0));
    }
    return $return;
}
Exemplo n.º 2
0
                            <?php 
// anti bot
?>
                            <div class="hidden"><input autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" type="text" name="order_text" tabindex="-1" value=""></div>
                            
                            <div id="orderform-SUBMIT" class="button clickable noselect">SUBMIT</div>
                            
                            <div class="clearfix"></div>
                            
                            
                            <div class="order_help modal_overlay_small_text">
                                <?php 
$content = "*****@*****.**";
$args = array('text' => '', 'css_class' => '', 'css_id' => '', 'echo' => 1);
if (function_exists('encryptx')) {
    encryptx($content, $args);
} else {
    echo sprintf('<a href="mailto:%s" id="%s" class="%s">%s</a>', $content, $args['css_id'], $args['css_class'], $args['text'] != '' ? $args['text'] : $content);
}
?>
                          
                               <br>If you need help feel free to contact us
                            </div>
                    	</form> <?php 
// end order_content
?>
                        
                       <p id="order_fin" class="modal_overlay_medium_text hidden">Thank you — your order has been received and we will get back to you very soon.</p>
                       
                       
				</div>