Cryptex 2.0 Released

completly rewritten, strict oop coding style, some new features

Important Notice: After updating the plugin goto the settings page and click “save changes” to update the caches !

I’ve got several problems with the cryptex plugin on this blog the last days: I’m using CSS-IDs to access the DOM elements, but cryptex uses classes to style the text..in this case the cryptex css styles get overwritten by the theme styles and the email-addresses looking quite bad. To fix this problem i’ve added the ability to set an css-prefix on the cryptex settings page. On the bottom of this page you find an example which shows the effect of prefixes on css classes.
To easier make changes, add features or fix bugs in the feature i have completly rewritten the plugin and used strict oop style – now the code is very “smart”

CSS Prefix Example#

A new CSS template engine is also added to the plugin – you didn’t have to edit any css files!

Without Prefix#

.cryptex,  .cryptex .divider{
	display: inline;
	padding: 0px 2px 0px 2px;
	margin: 0px;
	background-color: transparent;
	cursor: auto;
	font-family: tahoma, sans-serif;
	font-size: 10pt;
	font-weight: normal;
	font-style: normal;
	text-align: left;
	text-transform: none;
	color: #bf0b27;
}

With Prefix#

#contentarea .cryptex,  #contentarea .cryptex .divider{
	display: inline;
	padding: 0px 2px 0px 2px;
	margin: 0px;
	background-color: transparent;
	cursor: auto;
	font-family: tahoma, sans-serif;
	font-size: 10pt;
	font-weight: normal;
	font-style: normal;
	text-align: left;
	text-transform: none;
	color: #bf0b27;
}

Use Cryptex in WordPress Themes/Template code#

In the past, some wordpress users wanted to use cryptex directly in the php based theme and this was only possible by calling the wordpress shortcode callback function directly – not nice but it works fine… Cryptex 2.0 provides a nativ method to easy use this: just call Cryptex::crypt(‘yourtext’) into your theme – that’s it!

Cryptex Template Example#

<div class="footer">
<p>Contact me on: <?php Cryptex::crypt('myaddress@yourdomain.tld'); ?></p>
</div>

Changelog#

  • Complete rewritten version of the plugin. Completly cleaned, strict OOP coding style
  • Bugfix: removed cryptex js+css from wordpress admin pages
  • Bugfix: pointer cursor is only visible on active hyperlinks
  • Improoved: you can add css prefixes to fix problems with some themes without editing your theme css
  • Improoved: only 1 css file is added instead of 2 files like before
  • Improoved: new plugin directory structure
  • Added: I18n (internationalization) is supported
  • Added: you can select the method cryptex uses to display email addresses (single image, hybrid image)
  • Added: if you wanna use cryptex directly in your wordpress template, you can simply use Cryptex::crypt('yourtext'); to display ‘yourtext’ as crypted version

Download#

Get Cryptex 2.0 on WordPress.org
Note: After updating the plugin goto the settings page and click “save changes” to update the caches !