# cryptx/3.3.3/include/admin_howto.php

CryptX, version 3.3.3. 28 lines.

- Page: https://pluginprobe.com/plugins/cryptx/3.3.3/code/include/admin_howto.php
- Raw: https://pluginprobe.com/plugins/cryptx/3.3.3/raw/include/admin_howto.php
- Modified: 2019-11-06T11:06:50+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/cryptx/3.3.3/code/include/admin_howto.php#L10-L20`.

```php
<?php
/**
 * CryptX option page "How to"-Tab
 */
function rw_cryptx_settings_tab_content_howto() {
	global $cryptX_var, $rw_cryptx_active_tab;
	if ( 'howto' != $rw_cryptx_active_tab )
		return;
	?>

	<h4><?php _e( "How to use CryptX in your Template",'cryptx' ); ?></h4>
    <table class="form-table">
        <tr>
            <td><?php _e("In your Template you can use the following function to encrypt a email address:",'cryptx'); ?><br>
            <pre>
&lt;?php
    $content = "name@example.com";
    // with this values the link text will be replaced by 'example', otherwise set $args = array();
    $args = array( 'alt_linktext' => 'example', 'opt_linktext' => 1 );
    echo (function_exists('encryptx'))? encryptx($content, $args) : $content;
?&gt;
            </pre>
            </td>
        </tr>
    </table>
	<?php
}
add_action( 'rw_cryptx_settings_content', 'rw_cryptx_settings_tab_content_howto' );
```
