Sha256: 33d6edb01c298af568ae46c00f94acfa2b23e3390165e1f7266a9a368ba35294
Contents?: true
Size: 1.01 KB
Versions: 98
Compression:
Stored size: 1.01 KB
Contents
/* Sir Trevor ItemText Block. This block takes an ID, fetches the record from solr, displays the image, title, and any provided text and displays them. */ SirTrevor.Blocks.Oembed = (function(){ return Spotlight.Block.extend({ plustextable: true, id_key:"url", type: "oembed", title: function() { return i18n.t('blocks:oembed:title'); }, description: function() { return i18n.t('blocks:oembed:description'); }, icon_name: "oembed", show_heading: false, template: [ '<div class="form oembed-text-admin clearfix">', '<div class="widget-header">', '<%= description() %>', '</div>', '<div class="row">', '<div class="form-group col-md-8">', '<label for="<%= formId(id_key) %>"><%= i18n.t("blocks:oembed:url") %></label>', '<input name="<%= id_key %>" class="form-control col-md-6" type="text" id="<%= formId(id_key) %>" />', '</div>', '</div>', '<%= text_area() %>', '</div>' ].join("\n") }); })();
Version data entries
98 entries across 98 versions & 1 rubygems