Ether Builder 1.6.3 & Ether Builder 1.6.4 (Huge update)

over 5 years ago in API, Ether Builder and News by luke

Ether Builder 1.6.3

  • Added: WPML integration (beta; Ether Builder widgets are copied automatically when creating pages for translation)
  • Added: Ether menu can be now additionally toggled in the top admin bar (manage its’ visibility via screen options)
  • Added Duplicate Widget Button. You can duplicate Single widgets or whole groups (via columns widget)
  • Single list widget can be now arranged into (1-10) columns or inline
  • Added image widget title on hover option + capability of setting any explicit size including % for either linked or not image elements (earlier all entries were converted to pixel values
  • Fixed: Services widget styles issue with left/right aligned images
  • Fixed: Gridslider overflow when items are not manipulated in any way (it was affecting – cropping – testimonials style decoration earlier)
  • Fixed: Gallery grid height modes and image stretch mode. Galleries are now more badass and customizable than anywhere.
  • Fixed: builder widgets missing in “widgets area”
  • Fixed: Builder display issues in some specific cases for reported single pages
  • Fixed: Appending builder styles for pages where Ether Builder Widgets are present only in sidebar area
  • Added: ether_builder_header action is called only once now (it used to fire multiple times earlier in some cases)
  • Fixed: Video Widget display isssues
  • Fixed: Nasty textarea bug within Ether Builder modal window that prevented user from changing its’ size + caused a display glitch in chrome
  • Added: More prominent indication of active tab/accordion in tab/accordion widget
  • Added: Gallery / Nivo / Flicker can now be aligned and have explicit width set (they were always 100% of the container width before)
  • Fixed: IE7 display issues
  • Revised gui interface in some widgets
  • Added: Price Box Text gridslider functionality + color option (There was a background option only present before

Ether Builder 1.6.4

  • UI upgrade: Tabbed widget options, enhanced labels and tooltips
  • Added: Updated Roundabout widget
  • Fixed: Search results bug
  • Added: New gallery option: Front Image Only – displays only one image, the rest is available in the lightbox
  • Added: Upload/Insert button for Rich Text widget (comming soon to other rich texts within tabs, services, testimonials etc.)

Ether Builder 1.6.0

over 5 years ago in API, Ether Builder and News by matt
  • added style switcher (light/dark styles available for now) (BETA)
  • added rich text editor for widgets wherever applicable
  • added posts feed + pages feed widgets + option to make specific pages featured / set featured image (for display in pages feed)
  • revised template manager with a more compact look
  • added alternative styles for accordion and tabs widgets
  • added constrain ratio for gallery widget constrain option (so now you can have relative rectangles rather than squares only)
  • fixed “invalid argument supplied for foreach” warning”
  • fixed 404 errors in ether-builder.css (reset-16px.png and save-16px.png)
  • added ether_builder_widget and ether_builder_{WIDGET_SLUG}_widget filters
  • fixed alignment of linked images (image widget)
  • fixed gallery display issues (images overflowing vertically)
  • fixed pricing tables styles
  • refreshed ether builder admin pages layout and look
  • significantly revised documentation – updated with common faqs and custom Ether Builder filters description
  • added support for utf-8 serialized data and a new method of fixing it

Ether Backup 1.1.4

over 5 years ago in API, Ether Backup and News by luke

There was some nasty error in backup module, so there you go! This update is available via auto update feature for now.

Ether Backup 1.1.3

over 5 years ago in API, Ether Backup and News by luke
  • Added: ether_backup::add_table method (you can now define additional tables via code)
  • Added: new ether framework version

Serialized data fix for WordPress

over 5 years ago in News by luke

There is many solutions for this problem over the internet, but none of them are solving the problem automatically or without editing the WordPress core.

Lately i came up with the solution for this problem for Ether Builder plugin.

So, here it is, feel free to use it.

add_filter('get_post_metadata', 'ether_serialize_fix', 10, 4);

function meta_serialize_fix($null, $object_id, $meta_key, $single)
{
	$meta_type = 'post';

	if ($meta_key == 'YOUR_META_KEY')
	{
		$meta_cache = wp_cache_get($object_id, $meta_type.'_meta');

		if ( ! $meta_cache)
		{
			$meta_cache = update_meta_cache($meta_type, array($object_id));
			$meta_cache = $meta_cache[$object_id];
		}

		if (isset($meta_cache[$meta_key]))

		{
			if ($single)
			{
				if (is_serialized($meta_cache[$meta_key][0]) AND ! maybe_unserialize($meta_cache[$meta_key][0]))
				{
					return array(maybe_unserialize_fixed($meta_cache[$meta_key][0]));
				}
			} else
			{
				foreach ($meta_cache[$meta_key] as $k => $v)
				{
					if (is_serialized($v) AND ! maybe_unserialize($v))
					{
						return array_map('maybe_unserialize_fixed', $meta_cache[$meta_key]);
					}
				}
			}
		}
	}
}

add_filter('option_OPTION_NAME', 'option_serialize_fix', 10, 1);

function option_serialize_fix($option, $value)
{
	if (is_serialized($value) AND ! maybe_unserialize($value))
	{
		return maybe_unserialize_fix($value);
	}
}

function maybe_unserialize_fixed($data)
{
	return maybe_unserialize(preg_replace('!s:(\d+):"(.*?)";!e',"'s:'.strlen('$2').':\"$2\";'", $data));
}

Keep in mind that using this for every meta key / option name is not a good idea. Use conditional tag instead!