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