| 1 |
<?php |
| 2 |
/** |
| 3 |
* CryptX option page "How to"-Tab |
| 4 |
*/ |
| 5 |
function rw_cryptx_settings_tab_content_howto() { |
| 6 |
global $cryptX_var, $rw_cryptx_active_tab; |
| 7 |
if ( 'howto' != $rw_cryptx_active_tab ) |
| 8 |
return; |
| 9 |
?> |
| 10 |
|
| 11 |
<h4><?php _e( "How to use CryptX in your Template",'cryptx' ); ?></h4> |
| 12 |
<table class="form-table"> |
| 13 |
<tr> |
| 14 |
<td><?php _e("In your Template you can use the following function to encrypt a email address:",'cryptx'); ?><br> |
| 15 |
<pre> |
| 16 |
<?php |
| 17 |
$content = "name@example.com"; |
| 18 |
echo (function_exists('encryptx'))? encryptx($content) : $content; |
| 19 |
?> |
| 20 |
</pre> |
| 21 |
</td> |
| 22 |
</tr> |
| 23 |
</table> |
| 24 |
<?php |
| 25 |
} |
| 26 |
add_action( 'rw_cryptx_settings_content', 'rw_cryptx_settings_tab_content_howto' ); |