run(); if (current_user_can('manage_options')) { if($searcher->getResultCount() > 0) { $msg = '

'; $msg .= __('You use the deprecated CryptX function cryptx() in your template. You should use the new function encryptx() described at the plugin', 'cryptx'); $msg .= sprintf( ' %s', plugin_basename( __FILE__ ), __('Settings') ); $msg .= '.

'; $msg .= ''; rw_cryptx_showMessage($msg, true); } elseif(isset($_POST['cryptX_rescan_theme'])) { rw_cryptx_showMessage('

'.__('Your theme is OK! You have nothing to do.','cryptx').'

'); } } } /** * add links to plugin site */ function rw_cryptx_init_row_meta($links, $file) { if (CRYPTX_BASENAME == $file) { return array_merge( $links, array( sprintf( '%s', plugin_basename( __FILE__ ), __('Settings') ) ), array( sprintf( '%s', __('Donate', 'cryptx') ) ) ); } return $links; } /** * add CryptX to Option menu */ function rw_cryptx_menu() { add_options_page( 'CryptX', (version_compare($GLOBALS['wp_version'], '2.6.999', '>') ? 'CryptX Icon' : ''). 'CryptX', 'manage_options', __FILE__, 'rw_cryptx_submenu' ); } /** * print CryptX Option Page */ function rw_cryptx_submenu() { global $cryptX_var, $data; if (isset($_POST) && !empty($_POST)) { if (function_exists('current_user_can') === true && current_user_can('manage_options') === false) { wp_die("You don't have permission to access!"); } $saveOptions = $_POST['cryptX_var']; check_admin_referer('cryptX'); if(isset($_POST['cryptX_var_reset'])) { delete_option('cryptX'); $saveOptions = rw_loadDefaults(); } if(isset($_POST['cryptX_rescan_theme'])) { rw_cryptx_showAdminMessages(); } else { $checkboxes = array( 'the_content' => 0, 'the_meta_key' => 0, 'the_excerpt' => 0, 'comment_text' => 0, 'widget_text' => 0, 'autolink' => 0, 'metaBox' => 0, ); $saveOptions = wp_parse_args( $saveOptions, $checkboxes ); update_option( 'cryptX', $saveOptions); $cryptX_var = rw_loadDefaults(); ?>

')) { ?>

CryptX


NEWS:  %3$s: %4$s
%5$s: Ralf Weber | %6$s | %7$s
', __('Plugin'), 'CryptX', __('Version'), rw_cryptx_version() /*$data['Version']*/, __('Author'), __('Follow on Twitter', 'cryptx'), __('Donate', 'cryptx') ); ?>


/>
 
/>
/>
 
/>

 
/> Try it and look at your site and check the html source!)",'cryptx'); ?>
/> " align="absmiddle" alt="" title="">
 
 
 

/>   this can be disabled per Post by an Option)",'cryptx'); ?>
/>  works only with the_meta()!)",'cryptx'); ?>
/>  
/>  
/>   works only on all widgets, not on a single widget!)",'cryptx'); ?>


/>  
/>  
/>  
/>  header of the page.",'cryptx'); ?>
/>  footer of the page.",'cryptx'); ?>
/>  
  

<?php
    $content = "name@example.com";
    $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));
    }
?>

get_encryptx_meta. The parameters are the same!
1. Example:", 'cryptx'); ?>

<?php
    foreach(get_encryptx_meta($post->ID, $key, false) as $mail) {
        echo $mail.'<br/>';
    }
?>


<?php echo get_encryptx_meta($post->ID, $key, true); ?>