(function($){"use strict";var Genesis_Layout=function(options){this.init("genesis_layout",options,Genesis_Layout.defaults)};$.fn.editableutils.inherit(Genesis_Layout,$.fn.editabletypes.select);$.extend(Genesis_Layout.prototype,{value2input:function(value){if(!value){this.$input.find("input").first().prop("checked",true);return}this.$input.find("input[value="+value+"]").prop("checked",true)},input2value:function(){return this.$input.find("input:checked").val()},renderList:function(){this.$input.empty();var fillItems=function($el,data){var attr;if($.isArray(data)){for(var i=0;i",attr),data[i].children))}else{var $img=$("
").html(data[i].text).find("img");var text=data[i].text;if($img.length){text=$img.attr("alt")}attr.type="radio";attr.alt=text;attr.title=text;attr.value=data[i].value;attr.name="genesis_layout";if(data[i].disabled){attr.disabled=true}var css_class=$img.length?"img":"default";var $option=$("